<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>03.父项属性-justify-content</title>

  <style>

  .box{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content: flex-start;
  }

  .box1{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content: flex-end;
  }

  .box2{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content:center;
  }

  .box3{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content:space-around;
  }

  .box4{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content:space-between;
  }

  .box4{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content:space-between;
  }

  .box5{
    height: 100px;
    background-color: pink;
    display: flex;
    justify-content:first baseline;
  }

  .item {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    border-radius: 2px;
    margin: 2px;
  }

  </style>
</head>
<body>

<h4> justify-content: flex-start </h4>
<div class="box">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> justify-content: flex-end </h4>
<div class="box1">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> justify-content:center </h4>
<div class="box2">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> justify-content:space-around </h4>
<div class="box3">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> justify-content:space-between </h4>
<div class="box4">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

<h4> justify-content:baseline </h4>
<div class="box5">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>


</body>
</html>